#define _CRT_SECURE_NO_WARNINGS 1
int max_value(int a[][30], int m, int n)
{
	int max = 0;
	for (int i = 0; i < m; i++)
		for (int j = 0; j < n; j++)
			if (a[i][j] > max)
				max = a[i][j];
	return max;
}